package club.beimeng.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient //nacos 注册
@EnableFeignClients //Feign 注册，使本启动类可以使用nacos注册的服务
//@MapperScan
@ComponentScan(basePackages ={"club.beimeng"}) /*用来扫描common种的swagger配置类*/
public class SpringbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootApplication.class, args);
    }

}

/*
 *
 * @author Mr.Bao
 * @date 2021/7/16 18:19 springboot启动类
 */